package edu.sctu.nieyu.day20150521.texttwo;

/**
 * Created by user01 on 2015/5/21.
 */
public class Circle extends Message implements Iput {

    double r = 2;

    @Override
    public void perimeter() {
        double C;
       C = 2*r*Math.PI;
        System.out.println("周长："+C);


    }

    @Override
    public void area() {
        double S;
        S = r*r*Math.PI;
        System.out.println("面积："+S);


    }

    @Override
    public void getMessage() {

        System.out.println("圆:");
        Message message = new Circle();
        message.perimeter();
        message.area();




    }
}
